package com.ruige.account.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruige.account.entity.NameValue;
import com.ruige.account.pojo.AccountLog;


import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author huangrui
 * @since 2020-05-25
 */
public interface IAccountLogService extends IService<AccountLog> {

    void change(AccountLog accountLog);

    List<AccountLog> findAll();

    void editLog(AccountLog accountLog);

    Map<String, BigDecimal> baseInfo(Integer userId);

    IPage<AccountLog> findLogByPage(Long page, Long rows, Integer userId);

    Integer deleteById(Integer id);

    Map<String, List> getWeekChartData(Integer userId);

    Map<String, List> getCurveChartData(Integer userId, LocalDate localDate);

    List<NameValue> getRatioChartData(Integer userId, LocalDate localDate);

    List<NameValue> getRatioYearChartData(Integer userId, LocalDate year);
}
